/*
 * DevicePropeller.h
 *
 * Created on: $(date:yyyy-MM-dd)
 * Author: $(user)
 */
#ifndef DevicePropeller_H
#define DevicePropeller_H

#include "Device.hpp"
#include "common.h"

class DevicePropeller: public Device<Propeller>{
public:
    string deviceName;
    string deviceType;

    void func(Propeller& data) ;
    
    DevicePropeller(const string& interfaceName, const string& dt);
    ~DevicePropeller();

    // 禁止拷贝
    DevicePropeller(const DevicePropeller&) = delete;
    DevicePropeller& operator=(const DevicePropeller&) = delete;

private:
    int socketFd; // 存储CAN socket的文件描述符
    int create(unsigned char data[],int mode,int angle);
};



#endif // DevicePropeller_H